<html>
<%@ include file="/WEB-INF/views/include.jsp" %>
<body>
<div id="wrapperbody">
<div id="wrapper">

<%@ include file="/WEB-INF/views/header.jsp" %>

<div id="contentwrap">
<div id="content">
<br>
<h1>PLAYERS</h1>
<br><br>
<table><tr>
<td width=200></td>
<td>
<div class="tabla_players" >
     <c:choose>
     <c:when test="${not empty usuarios}">
     <table >
         <tr>
             <td width=50>
                Avatar  
             </td>
             <td  width=200>
                Player
             </td>
             <td  width=300>
                Equipo
             </td> 
         </tr>
        
         <c:forEach var="user" items="${usuarios}">
          <tr style='cursor:pointer;' onclick='location.href="${baseURL}/player/perfil?id=${user.idusuario}"' >
             <td style='text-align:center;' >
              <c:choose>
         		<c:when test="${empty user.urlimagen }">
         		<img src="${baseURL}/resources/images/no.jpg" width='25' height='25' >
		      </c:when>
		      <c:otherwise>
		       <img src="${user.urlimagen}" width='25' height='25' >
		      </c:otherwise>
		      </c:choose>
		      
             
              </td>
             <td > ${user.username}</td>
             <td >
               <c:choose>
         		<c:when test="${empty user.equipo }">
         		-----------
             </c:when>
             <c:otherwise>
              ${user.equipo}
              </c:otherwise>
              </c:choose>
             
             </td>
         </tr> 
        </c:forEach>
        
          
     </table>
      </c:when>
      <c:otherwise>
      <br><br><br><br><br><br><br><br>
      <h1>No hay usuarios en el sistema</h1>
       <br><br><br><br>
      </c:otherwise>
         
     </c:choose>
 </div>
</td>
</tr>
</table>
<br><br>
<div style='text-align:center;'><br><br>${propaganda.publicidad[2].cuerpo}</div>
          
</div>
</div> 
 
   
</div>
</div>
   <%@ include file="/WEB-INF/views/fooder.jsp" %> 
</body>
</html>